const homePath = "/home"
const accountSettingsPath = "/system/personalCenter/accountSettings"

export enum ResultEnum {
	SUCCESS = 200,
	OVERDUE = 599,
	IP_LIMIT = 403,
	MAINTAIN_CODE_ERROR = 503
}

export interface Result {
	code: number
	data: any
}

const cardsNameMap = new Map([
	[0, "方片A"], // 方片1
	[1, "梅花A"], // 梅花1
	[2, "红桃A"], // 红桃1
	[3, "黑桃A"], // 黑桃1

	[4, "方片2"], // 方片2
	[5, "梅花2"], // 梅花2
	[6, "红桃2"], // 红桃2
	[7, "黑桃2"], // 黑桃2

	[8, "方片3"], // 方片3
	[9, "梅花3"], // 梅花3
	[10, "红桃3"], // 红桃3
	[11, "黑桃3"], // 黑桃3

	[12, "方片4"], // 方片4
	[13, "梅花4"], // 梅花4
	[14, "红桃4"], // 红桃4
	[15, "黑桃4"], // 黑桃4

	[16, "方片5"], // 方片5
	[17, "梅花5"], // 梅花5
	[18, "红桃5"], // 红桃5
	[19, "黑桃5"], // 黑桃5

	[20, "方片6"], // 方片6
	[21, "梅花6"], // 梅花6
	[22, "红桃6"], // 红桃6
	[23, "黑桃6"], // 黑桃6

	[24, "方片7"], // 方片7
	[25, "梅花7"], // 梅花7
	[26, "红桃7"], // 红桃7
	[27, "黑桃7"], // 黑桃7

	[28, "方片8"], // 方片8
	[29, "梅花8"], // 梅花8
	[30, "红桃8"], // 红桃8
	[31, "黑桃8"], // 黑桃8

	[32, "方片9"], // 方片9
	[33, "梅花9"], // 梅花9
	[34, "红桃9"], // 红桃9
	[35, "黑桃9"], // 黑桃9

	[36, "方片T"], // 方片10
	[37, "梅花T"], // 梅花10
	[38, "红桃T"], // 红桃10
	[39, "黑桃T"], // 黑桃10

	[40, "方片J"], // 方片J
	[41, "梅花J"], // 梅花J
	[42, "红桃J"], // 红桃J
	[43, "黑桃J"], // 黑桃J

	[44, "方片Q"], // 方片Q
	[45, "梅花Q"], // 梅花Q
	[46, "红桃Q"], // 红桃Q
	[47, "黑桃Q"], // 黑桃Q

	[48, "方片K"], // 方片K
	[49, "梅花K"], // 梅花K
	[50, "红桃K"], // 红桃K
	[51, "黑桃K"] // 黑桃K
])

export const LOGIN_CODE = [ResultEnum.OVERDUE, ResultEnum.IP_LIMIT, ResultEnum.MAINTAIN_CODE_ERROR]

export const constant = {
	buyType: [
		{ code: 2, description: "强制购买" },
		{ code: 0, description: "放弃购买" },
		{ code: 1, description: "主动购买" }
	],
	roundCode: [
		{ code: 0, description: "未开始" },
		{ code: 1, description: "Preflop轮" },
		{ code: 2, description: "Flop轮" },
		{ code: 3, description: "Turn轮" },
		{ code: 4, description: "River轮" },
		{ code: 5, description: "ShowDown轮" }
	],
	specialPlayTypeArr: [
		{
			code: 1,
			description: "鱿鱼游戏"
		}
	]
}

export const insuranceModeList = [
	{ value: 1, label: "经典保险" },
	{ value: 2, label: "EV保险" }
]

export const chatContentTypeArr = [
	{ code: 1, description: "弹幕" },
	{ code: 2, description: "短语" },
	{ code: 3, description: "表情" },
	{ code: 4, description: "语音聊天" },
	{ code: 5, description: "互动道具" },
	{ code: 6, description: "弹幕" }
]

export const squidRewardModelArr = [
	{
		code: 0,
		description: "普通鱿鱼"
	},
	{
		code: 1,
		description: "无限鱿鱼"
	}
]

export type ConstantType = typeof constant

export const orderStatusMap = {
	1: "funds.fund_audit.audit_fail_1",
	3: "funds.fund_audit.audit_fail_2",
	4: "funds.fund_audit.pass_the_audit"
}

export const memberOrderStatusMap = {
	1: "funds.fund_audit.pass_the_audit",
	2: "funds.fund_audit.audit_fail_1",
	3: "funds.fund_audit.audit_fail_2",
	4: "funds.fund_audit.agent_pass",
	5: "funds.fund_audit.agent_reject"
}

export const bounsPayoutStatusMap = {
	"0": "待发放",
	"1": "待发放",
	"2": "待发放",
	"3": "已发放",
	"4": "已过期",
	"5": "无返水",
	"6": "已取消"
}
export { accountSettingsPath, cardsNameMap, homePath }
